const path = require("path");
const fs = require("fs-extra");

exports.getBundleType = () => {
  const rootPath = process.cwd();
  const configPath = path.join(rootPath, "package.json");
  const config = fs.readFileSync(configPath, "utf8");
  const configObj = JSON.parse(config);
  return configObj.bundleDevSuffix || ".tsx";
};
